/**
 * Copyright (C), 2011-2016
 * File Name: ConnectionHolder.java
 * Encoding: UTF-8
 * Date: Feb 28, 2012
 * History: 
 */
package com.waynewan.qcomet.event;

import org.apache.catalina.CometEvent;

import com.waynewan.qcomet.message.MessageSender;

/**
 * 
 * @author WayneWan (bestirwiny@gmail.com)
 * @Date Feb 28, 2012 10:26:01 PM
 */
public class ConnectionHolder {
	private String clientId;
	
	private MessageSender sender;
	
	private CometEvent event;

	public String getClientId() {
		return clientId;
	}

	public void setClientId(String clientId) {
		this.clientId = clientId;
	}

	public MessageSender getSender() {
		return sender;
	}

	public void setSender(MessageSender sender) {
		this.sender = sender;
		this.sender.setHolder(this);
	}

	public CometEvent getEvent() {
		return event;
	}

	public void setEvent(CometEvent event) {
		this.event = event;
	}
}
